﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;

namespace SHop
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        private DulieuDataContext dc = new DulieuDataContext();

        protected void Page_Load(object sender, EventArgs e)
        {
 
        }

        protected void Page_PreInit(object sender, EventArgs e)
        {
            try
            {
                Theme th = this.dc.Themes.Single(t => t.status == 1);
                Page.Theme = th.name.ToString();
            }
            catch
            {
                Page.Theme = "Theme1";
            }
        }


    }
}